(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var r;function aa(a){var b=0;return function(){return b=f}}); t("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Da(this,b,"startsWith");b+="";for(var e=d.length,f=b.length,g=Math.max(0,Math.min(c|0,d.length)),h=0;h=f}}); t("Object.setPrototypeOf",function(a){return a||ma}); function v(a,b){return Object.prototype.hasOwnProperty.call(a,b)} var Ea="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;cf&&(f=Math.max(f+e,0));f")&&(a=a.replace(hb,">"));-1!=a.indexOf('"')&&(a=a.replace(ib,"""));-1!=a.indexOf("'")&&(a=a.replace(jb,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(kb,"�"))}return a} var fb=/&/g,gb=//g,ib=/"/g,jb=/'/g,kb=/\x00/g,lb=/[\x00&<>"']/;function mb(a,b){return ab?1:0} ;function D(a,b){this.f=b===nb?a:""} D.prototype.S=!0;D.prototype.P=function(){return this.f.toString()}; D.prototype.da=!0;D.prototype.ca=function(){return 1}; var ob=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,pb=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,qb=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,nb={},rb=new D("about:invalid#zClosurez",nb);var E;a:{var sb=y.navigator;if(sb){var tb=sb.userAgent;if(tb){E=tb;break a}}E=""}function G(a){return-1!=E.indexOf(a)} ;function ub(a,b,c){this.f=c===vb?a:"";this.g=b} ub.prototype.da=!0;ub.prototype.ca=function(){return this.g}; ub.prototype.S=!0;ub.prototype.P=function(){return this.f.toString()}; var vb={};function wb(a,b){void 0===cb&&(cb=Pa("goog#html"));var c=(c=cb)?c.createHTML(a):a;return new ub(c,b,vb)} ;function xb(a){return a=eb(a,void 0)} ;var yb=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function zb(a){return a?decodeURI(a):a} function H(a){return zb(a.match(yb)[3]||null)} function Ab(a,b,c){if(Array.isArray(b))for(var d=0;dparseFloat(Nb)){Mb=String(Pb);break a}}Mb=Nb}var Qb=Mb,Rb={},Sb;if(y.document&&Hb){var Tb=Lb();Sb=Tb?Tb:parseInt(Qb,10)||void 0}else Sb=void 0;var Ub=Sb;var Vb=G("iPhone")&&!G("iPod")&&!G("iPad")||G("iPod"),Wb=G("iPad");var Xb={},Yb=null;var I=window;function Zb(a){var b=z("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(g){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||y.$googDebugFname||b}catch(g){e="Not available",c=!0}b=$b(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;if(null== c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,ac[c])c=ac[c];else{c=String(c);if(!ac[c]){var f=/function\s+([^\(]+)/m.exec(c);ac[c]=f?f[1]:"[Anonymous]"}c=ac[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}a.stack= b;return a} function $b(a,b){b||(b={});b[bc(a)]=!0;var c=a.stack||"",d=a.Ta;d&&!b[bc(d)]&&(c+="\nCaused by: ",d.stack&&0==d.stack.indexOf(d.toString())||(c+="string"===typeof d?d:d.message+"\n"),c+=$b(d,b));return c} function bc(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack} var ac={};function cc(a){this.f=a||{cookie:""}} r=cc.prototype;r.isEnabled=function(){return navigator.cookieEnabled}; r.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.ab;d=c.secure||!1;var f=c.domain||void 0;var g=c.path||void 0;var h=c.fa}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===h&&(h=-1);this.f.cookie=a+"="+b+(f?";domain="+f:"")+(g?";path="+g:"")+(0>h?"":0==h?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*h)).toUTCString())+(d?";secure":"")+(null!=e?";samesite="+e:"")}; r.get=function(a,b){for(var c=a+"=",d=(this.f.cookie||"").split(";"),e=0,f;e");f=f.join("")}f=jc(e,f);g&&("string"===typeof g?f.className=g:Array.isArray(g)?f.className=g.join(" "):gc(f,g));2p;p+=4)q[p/4]=n[p]<<24|n[p+1]<<16|n[p+2]<<8|n[p+3];for(p=16;80>p;p++)n=q[p-3]^q[p-8]^q[p-14]^q[p-16],q[p]=(n<<1|n>>>31)&4294967295;n=e[0];var w=e[1],x=e[2],F=e[3],sa=e[4];for(p=0;80>p;p++){if(40>p)if(20>p){var O=F^w&(x^F);var U=1518500249}else O=w^x^F,U=1859775393;else 60>p?(O=w&x|F&(w|x),U=2400959708):(O=w^x^F,U=3395469782);O=((n<<5|n>>>27)&4294967295)+O+sa+U+q[p]&4294967295;sa=F;F=x;x=(w<<30|w>>>2)&4294967295;w=n;n=O}e[0]=e[0]+n&4294967295;e[1]=e[1]+w&4294967295; e[2]=e[2]+x&4294967295;e[3]=e[3]+F&4294967295;e[4]=e[4]+sa&4294967295} function c(n,q){if("string"===typeof n){n=unescape(encodeURIComponent(n));for(var p=[],w=0,x=n.length;wl?c(h,56-l):c(h,64-(l-56));for(var p=63;56<=p;p--)f[p]=q&255,q>>>=8;b(f);for(p=q=0;5>p;p++)for(var w=24;0<=w;w-=8)n[q++]=e[p]>>w&255;return n} for(var e=[],f=[],g=[],h=[128],k=1;64>k;++k)h[k]=0;var l,m;a();return{reset:a,update:c,digest:d,ta:function(){for(var n=d(),q="",p=0;pf}f&&c.push(e)}return c} function fd(){var a=N.nonce;return void 0!==a?a&&a===String(a)&&a.match(dd)?a:N.nonce=null:K.querySelector?(a=K.querySelector("script[nonce]"))?(a=a.nonce||a.getAttribute("nonce")||"",a&&a===String(a)&&a.match(dd)?N.nonce=a:N.nonce=null):null:null} function gd(a){if("loading"!=K.readyState)hd(a);else{var b=fd(),c="";null!==b&&(c=' nonce="'+b+'"');a="<"+cd+' src="'+encodeURI(a)+'"'+c+">";K.write(id?id.createHTML(a):a)}} function hd(a){var b=K.createElement(cd);b.setAttribute("src",id?id.createScriptURL(a):a);a=fd();null!==a&&b.setAttribute("nonce",a);b.async="true";(a=K.getElementsByTagName(cd)[0])?a.parentNode.insertBefore(b,a):(K.head||K.body||K.documentElement).appendChild(b)} function jd(a,b){var c=b&&b._c;if(c)for(var d=0;da&&0===a%1&&this.g[a]!=b&&(this.g[a]=b,this.f=-1)}; od.prototype.get=function(a){return!!this.g[a]}; function pd(a){-1==a.f&&(a.f=Va(a.g,function(b,c,d){return c?b+Math.pow(2,d):b},0)); return a.f} ;function qd(a,b){this.type=a;this.f=this.target=b;this.defaultPrevented=!1} qd.prototype.g=function(){this.defaultPrevented=!0};var rd=!Hb||9<=Number(Ub),sd; if(sd=Hb){var td;if(Object.prototype.hasOwnProperty.call(Rb,"9"))td=Rb["9"];else{for(var ud=0,vd=db(String(Qb)).split("."),wd=db("9").split("."),xd=Math.max(vd.length,wd.length),yd=0;0==ud&&yd=a.keyCode)a.keyCode=-1}catch(b){}};var Hd="closure_listenable_"+(1E6*Math.random()|0),Id=0;function Jd(a,b,c,d,e){this.listener=a;this.f=null;this.src=b;this.type=c;this.capture=!!d;this.R=e;this.key=++Id;this.L=this.N=!1} function Kd(a){a.L=!0;a.listener=null;a.f=null;a.src=null;a.R=null} ;function Ld(a){this.src=a;this.listeners={};this.f=0} Ld.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.f++);var g=Md(a,b,d,e);-1c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(k){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.f;f;f=f.parentNode)c.push(f);f=a.type;for(var g=c.length-1;0<=g;g--){d.f=c[g];var h=ae(c[g],f,!0,d);e=e&&h}for(g=0;g>>0);function Td(a){if("function"===typeof a)return a;a[ce]||(a[ce]=function(b){return a.handleEvent(b)}); return a[ce]} ;function Q(){J.call(this);this.f=new Ld(this);this.o=this;this.l=null} B(Q,J);Q.prototype[Hd]=!0;Q.prototype.addEventListener=function(a,b,c,d){Rd(this,a,b,c,d)}; Q.prototype.removeEventListener=function(a,b,c,d){Zd(this,a,b,c,d)}; Q.prototype.dispatchEvent=function(a){var b=this.l;if(b){var c=[];for(var d=1;b;b=b.l)c.push(b),++d}b=this.o;d=a.type||a;if("string"===typeof a)a=new qd(a,b);else if(a instanceof qd)a.target=a.target||b;else{var e=a;a=new qd(d,b);bb(a,e)}e=!0;if(c)for(var f=c.length-1;0<=f;f--){var g=a.f=c[f];e=de(g,d,!0,a)&&e}g=a.f=b;e=de(g,d,!0,a)&&e;e=de(g,d,!1,a)&&e;if(c)for(f=0;fa.g&&(a.g++,b.next=a.f,a.f=b)} ;function ge(a){y.setTimeout(function(){throw a;},0)} var he; function ie(){var a=y.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!G("Presto")&&(a=function(){var e=jc(document,"IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),h="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=Ma(function(k){if(("*"==h||k.origin==h)&&k.data==g)this.port1.onmessage()},this); f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,h)}}}); if("undefined"!==typeof a&&!G("Trident")&&!G("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.ba;c.ba=null;e()}}; return function(e){d.next={ba:e};d=d.next;b.port2.postMessage(0)}}return function(e){y.setTimeout(e,0)}} ;function je(){this.g=this.f=null} var le=new ee(function(){return new ke},function(a){a.reset()}); je.prototype.add=function(a,b){var c=le.get();c.set(a,b);this.g?this.g.next=c:this.f=c;this.g=c}; je.prototype.remove=function(){var a=null;this.f&&(a=this.f,this.f=this.f.next,this.f||(this.g=null),a.next=null);return a}; function ke(){this.next=this.scope=this.f=null} ke.prototype.set=function(a,b){this.f=a;this.scope=b;this.next=null}; ke.prototype.reset=function(){this.next=this.scope=this.f=null};function me(a,b){ne||oe();pe||(ne(),pe=!0);qe.add(a,b)} var ne;function oe(){if(y.Promise&&y.Promise.resolve){var a=y.Promise.resolve(void 0);ne=function(){a.then(re)}}else ne=function(){var b=re; "function"!==typeof y.setImmediate||y.Window&&y.Window.prototype&&!G("Edge")&&y.Window.prototype.setImmediate==y.setImmediate?(he||(he=ie()),he(b)):y.setImmediate(b)}} var pe=!1,qe=new je;function re(){for(var a;a=qe.remove();){try{a.f.call(a.scope)}catch(b){ge(b)}fe(le,a)}pe=!1} ;function R(a){this.f=0;this.A=void 0;this.j=this.g=this.i=null;this.l=this.o=!1;if(a!=Ga)try{var b=this;a.call(void 0,function(c){se(b,2,c)},function(c){se(b,3,c)})}catch(c){se(this,3,c)}} function te(){this.next=this.context=this.onRejected=this.g=this.f=null;this.i=!1} te.prototype.reset=function(){this.context=this.onRejected=this.g=this.f=null;this.i=!1}; var ue=new ee(function(){return new te},function(a){a.reset()}); function ve(a,b,c){var d=ue.get();d.g=a;d.onRejected=b;d.context=c;return d} function we(a){if(a instanceof R)return a;var b=new R(Ga);se(b,2,a);return b} function xe(a,b,c){ye(a,b,c,null)||me(Na(b,a))} function ze(a){return new R(function(b,c){var d=a.length,e=[];if(d)for(var f=function(l,m){d--;e[l]=m;0==d&&b(e)},g=function(l){c(l)},h=0,k;he;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.f[0];c=a.f[1];var g=a.f[2],h=a.f[3],k=a.f[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=h^c&(g^h);var l=1518500249}else f=c^g^h,l=1859775393;else 60>e?(f=c&g|h&(c|g),l=2400959708): (f=c^g^h,l=3395469782);f=(b<<5|b>>>27)+f+k+l+d[e]&4294967295;k=h;h=g;g=(c<<30|c>>>2)&4294967295;c=b;b=f}a.f[0]=a.f[0]+b&4294967295;a.f[1]=a.f[1]+c&4294967295;a.f[2]=a.f[2]+g&4294967295;a.f[3]=a.f[3]+h&4294967295;a.f[4]=a.f[4]+k&4294967295} Oe.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.g,d=0,e=this.o,f=this.i;dthis.i?this.update(this.j,56-this.i):this.update(this.j,this.g-(this.i-56));for(var c=this.g-1;56<=c;c--)this.o[c]=b&255,b/=256;Pe(this,this.o);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.f[c]>>d&255,++b;return a};var Qe="StopIteration"in y?y.StopIteration:{message:"StopIteration",stack:""};function Re(){} Re.prototype.next=function(){throw Qe;}; Re.prototype.G=function(){return this}; function Se(a){if(a instanceof Re)return a;if("function"==typeof a.G)return a.G(!1);if(Ia(a)){var b=0,c=new Re;c.next=function(){for(;;){if(b>=a.length)throw Qe;if(b in a)return a[b++];b++}}; return c}throw Error("Not implemented");} function Te(a,b){if(Ia(a))try{C(a,b,void 0)}catch(c){if(c!==Qe)throw c;}else{a=Se(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==Qe)throw c;}}} function Ue(a){if(Ia(a))return Xa(a);a=Se(a);var b=[];Te(a,function(c){b.push(c)}); return b} ;function Ve(a,b){this.i={};this.f=[];this.j=this.g=0;var c=arguments.length;if(12*this.g&&Xe(this),!0):!1}; function Xe(a){if(a.g!=a.f.length){for(var b=0,c=0;b=d.f.length)throw Qe;var f=d.f[b++];return a?f:d.i[f]}; return e};function Ze(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""} function $e(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)} function af(a,b){if(a.classList)var c=a.classList.contains(b);else c=a.classList?a.classList:Ze(a).match(/\S+/g)||[],c=0<=Sa(c,b);return c} function bf(a,b){if(a.classList)a.classList.add(b);else if(!af(a,b)){var c=Ze(a);$e(a,c+(0Date.now())pf.prototype.remove.call(this,a);else return b}};function qf(){} ;function rf(){} B(rf,qf);rf.prototype.clear=function(){var a=Ue(this.G(!0)),b=this;C(a,function(c){b.remove(c)})};function sf(a){this.f=a} B(sf,rf);r=sf.prototype;r.isAvailable=function(){if(!this.f)return!1;try{return this.f.setItem("__sak","1"),this.f.removeItem("__sak"),!0}catch(a){return!1}}; r.set=function(a,b){try{this.f.setItem(a,b)}catch(c){if(0==this.f.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; r.get=function(a){a=this.f.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; r.remove=function(a){this.f.removeItem(a)}; r.G=function(a){var b=0,c=this.f,d=new Re;d.next=function(){if(b>=c.length)throw Qe;var e=c.key(b++);if(a)return e;e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e}; return d}; r.clear=function(){this.f.clear()}; r.key=function(a){return this.f.key(a)};function tf(){var a=null;try{a=window.localStorage||null}catch(b){}this.f=a} B(tf,sf);function uf(a,b){this.g=a;this.f=null;if(Hb&&!(9<=Number(Ub))){vf||(vf=new Ve);this.f=vf.get(a);this.f||(b?this.f=document.getElementById(b):(this.f=document.createElement("userdata"),this.f.addBehavior("#default#userData"),document.body.appendChild(this.f)),vf.set(a,this.f));try{this.f.load(this.g)}catch(c){this.f=null}}} B(uf,rf);var wf={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},vf=null;function xf(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return wf[b]})} r=uf.prototype;r.isAvailable=function(){return!!this.f}; r.set=function(a,b){this.f.setAttribute(xf(a),b);yf(this)}; r.get=function(a){a=this.f.getAttribute(xf(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; r.remove=function(a){this.f.removeAttribute(xf(a));yf(this)}; r.G=function(a){var b=0,c=this.f.XMLDocument.documentElement.attributes,d=new Re;d.next=function(){if(b>=c.length)throw Qe;var e=c[b++];if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e}; return d}; r.clear=function(){for(var a=this.f.XMLDocument.documentElement,b=a.attributes.length;0c&&(c=b.length),f=b.indexOf("?"),0>f||f>c?(f=c,e=""):e=b.substring(f+1,c),b=[b.substr(0,f),e,b.substr(c)],c=b[1],b[1]=a?c?c+"&"+a:a:c,a=b[0]+(b[1]?"?"+b[1]:"")+b[2]):a=b;return a+d} ;function Lf(){return z("gapi.iframes.getContext")()} function Mf(){return z("gapi.iframes.SAME_ORIGIN_IFRAMES_FILTER")} ;function V(a){a=Nf(a);return"string"===typeof a&&"false"===a?!1:!!a} function Of(a,b){var c=Nf(a);return void 0===c&&void 0!==b?b:Number(c||0)} function Nf(a){var b=T("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:T("EXPERIMENT_FLAGS",{})[a]} ;var Pf=0;A("ytDomDomGetNextId",z("ytDomDomGetNextId")||function(){return++Pf});A("ytEventsEventsListeners",y.ytEventsEventsListeners||{});A("ytEventsEventsCounter",y.ytEventsEventsCounter||{count:0});function Qf(a,b){"function"===typeof a&&(a=Ef(a));return window.setTimeout(a,b)} ;function Rf(){} function Sf(a){var b=5E3;isNaN(b)&&(b=void 0);var c=z("yt.scheduler.instance.addJob");c?a=c(a,0,b):void 0===b?(a(),a=NaN):a=Qf(a,b||0);return a} ;function Tf(){} na(Tf,Rf);Tf.prototype.start=function(){var a=z("yt.scheduler.instance.start");a&&a()}; Tf.f=void 0;Tf.g=function(){Tf.f||(Tf.f=new Tf)}; Tf.g();var Uf=y.ytPubsubPubsubInstance||new S,Vf=y.ytPubsubPubsubSubscribedKeys||{},Wf=y.ytPubsubPubsubTopicToKeys||{},Xf=y.ytPubsubPubsubIsSynchronous||{};S.prototype.subscribe=S.prototype.subscribe;S.prototype.unsubscribeByKey=S.prototype.U;S.prototype.publish=S.prototype.W;S.prototype.clear=S.prototype.clear;A("ytPubsubPubsubInstance",Uf);A("ytPubsubPubsubTopicToKeys",Wf);A("ytPubsubPubsubIsSynchronous",Xf);A("ytPubsubPubsubSubscribedKeys",Vf);var Yf=window,W=Yf.ytcsi&&Yf.ytcsi.now?Yf.ytcsi.now:Yf.performance&&Yf.performance.timing&&Yf.performance.now&&Yf.performance.timing.navigationStart?function(){return Yf.performance.timing.navigationStart+Yf.performance.now()}:function(){return(new Date).getTime()};var Zf=Of("initial_gel_batch_timeout",1E3),$f=Math.pow(2,16)-1,ag=null,bg=0,cg=void 0,dg=0,eg=0,fg=0,gg=!0,hg=y.ytLoggingTransportGELQueue_||new Map;A("ytLoggingTransportGELQueue_",hg);var ig=y.ytLoggingTransportTokensToCttTargetIds_||{};A("ytLoggingTransportTokensToCttTargetIds_",ig);function jg(a){a=void 0===a?!1:a;return new R(function(b){window.clearTimeout(dg);window.clearTimeout(eg);eg=0;cg&&cg.isReady()?(kg(b,a),hg.clear()):(lg(),b())})} function lg(){V("web_gel_timeout_cap")&&!eg&&(eg=Qf(jg,6E4));window.clearTimeout(dg);var a=T("LOGGING_BATCH_TIMEOUT",Of("web_gel_debounce_ms",1E4));V("shorten_initial_gel_batch_timeout")&&gg&&(a=Zf);dg=Qf(jg,a)} function kg(a,b){var c=cg;b=void 0===b?!1:b;for(var d=Math.round(W()),e=hg.size,f=u(hg),g=f.next();!g.done;g=f.next()){var h=u(g.value);g=h.next().value;var k=h.next().value;h=$a({context:mg(c.f||ng())});h.events=k;(k=ig[g])&&og(h,g,k);delete ig[g];pg(h,d);qg(c,"log_event",h,{retry:!0,onSuccess:function(){e--;e||a();bg=Math.round(W()-d)}, onError:function(){e--;e||a()}, Ea:b});gg=!1}} function pg(a,b){a.requestTimeMs=String(b);V("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);var c=T("EVENT_ID",void 0);if(c){var d=T("BATCH_CLIENT_COUNTER",void 0)||0;!d&&V("web_client_counter_random_seed")&&(d=Math.floor(Math.random()*$f/2));d++;d>$f&&(d=1);Bf("BATCH_CLIENT_COUNTER",d);c={serializedEventId:c,clientCounter:String(d)};a.serializedClientEventId=c;ag&&bg&&V("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:ag,roundtripMs:String(bg)});ag=c;bg=0}} function og(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]} ;var rg=y.ytLoggingGelSequenceIdObj_||{};A("ytLoggingGelSequenceIdObj_",rg); function sg(a,b,c,d){d=void 0===d?{}:d;var e={};e.eventTimeMs=Math.round(d.timestamp||W());e[a]=b;a=String;d.timestamp?b=-1:(b=z("_lact",window),b=null==b?-1:Math.max(Date.now()-b,0));e.context={lastActivityMs:a(b)};V("log_sequence_info_on_gel_web")&&d.la&&(a=e.context,b=d.la,rg[b]=b in rg?rg[b]+1:0,a.sequence={index:rg[b],groupKey:b},d.Wa&&delete rg[d.la]);d=d.Va;a="";d&&(a={},d.videoId?a.videoId=d.videoId:d.playlistId&&(a.playlistId=d.playlistId),ig[d.token]=a,a=d.token);d=hg.get(a)||[];hg.set(a, d);d.push(e);c&&(cg=new c);c=Of("web_logging_max_batch")||100;e=W();d.length>=c?jg(!0):10<=e-fg&&(lg(),fg=e)} ;function tg(a){var b=ug;a=void 0===a?z("yt.ads.biscotti.lastId_")||"":a;b=Object.assign(vg(b),wg(b));b.ca_type="image";a&&(b.bid=a);return b} function vg(a){var b={};b.dt=uc;b.flash="0";a:{try{var c=a.f.top.location.href}catch(f){a=2;break a}a=c?c===a.g.location.href?0:1:2}b=(b.frm=a,b);b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?I:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!I.navigator&&"unknown"!==typeof I.navigator.javaEnabled&&!!I.navigator.javaEnabled&&I.navigator.javaEnabled();I.screen&&(b.u_h=I.screen.height,b.u_w=I.screen.width,b.u_ah=I.screen.availHeight,b.u_aw=I.screen.availWidth,b.u_cd=I.screen.colorDepth); I.navigator&&I.navigator.plugins&&(b.u_nplug=I.navigator.plugins.length);I.navigator&&I.navigator.mimeTypes&&(b.u_nmime=I.navigator.mimeTypes.length);return b} function wg(a){var b=a.f;try{var c=b.screenX;var d=b.screenY}catch(n){}try{var e=b.outerWidth;var f=b.outerHeight}catch(n){}try{var g=b.innerWidth;var h=b.innerHeight}catch(n){}b=[b.screenLeft,b.screenTop,c,d,b.screen?b.screen.availWidth:void 0,b.screen?b.screen.availTop:void 0,e,f,g,h];c=a.f.top;try{var k=(c||window).document,l="CSS1Compat"==k.compatMode?k.documentElement:k.body;var m=(new fc(l.clientWidth,l.clientHeight)).round()}catch(n){m=new fc(-12245933,-12245933)}k=m;m={};l=new od;y.SVGElement&& y.document.createElementNS&&l.set(0);c=pc();c["allow-top-navigation-by-user-activation"]&&l.set(1);c["allow-popups-to-escape-sandbox"]&&l.set(2);y.crypto&&y.crypto.subtle&&l.set(3);y.TextDecoder&&y.TextEncoder&&l.set(4);l=pd(l);m.bc=l;m.bih=k.height;m.biw=k.width;m.brdim=b.join();a=a.g;return m.vis={visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0,m.wgl=!!I.WebGLRenderingContext,m} var ug=new function(){var a=window.document;this.f=window;this.g=a}; A("yt.ads_.signals_.getAdSignalsString",function(a){return If(tg(a))});var xg="XMLHttpRequest"in y?function(){return new XMLHttpRequest}:null; function yg(){if(!xg)return null;var a=xg();return"open"in a?a:null} ;var zg={Authorization:"AUTHORIZATION","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},Ag="app debugcss debugjs expflag force_ad_params force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address client_dev_root_url".split(" "), Bg=!1; function Cg(a,b){b=void 0===b?{}:b;if(!c)var c=window.location.href;var d=a.match(yb)[1]||null,e=H(a);d&&e?(d=c,c=a.match(yb),d=d.match(yb),c=c[3]==d[3]&&c[1]==d[1]&&c[4]==d[4]):c=e?H(c)==e&&(Number(c.match(yb)[4]||null)||null)==(Number(a.match(yb)[4]||null)||null):!0;d=V("web_ajax_ignore_global_headers_if_set");for(var f in zg)e=T(zg[f]),!e||!c&&H(a)||d&&void 0!==b[f]||(b[f]=e);if(c||!H(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());(c||!H(a))&&(f="undefined"!=typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone: null)&&(b["X-YouTube-Time-Zone"]=f);if(c||!H(a))b["X-YouTube-Ad-Signals"]=If(tg(void 0));return b} function Dg(a){var b=window.location.search,c=H(a),d=zb(a.match(yb)[5]||null);d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=Jf(b),f={};C(Ag,function(g){e[g]&&(f[g]=e[g])}); return Kf(a,f||{},!1)} function Eg(a,b){if(window.fetch&&"XML"!=b.format){var c={method:b.method||"GET",credentials:"same-origin"};b.headers&&(c.headers=b.headers);a=Fg(a,b);var d=Gg(a,b);d&&(c.body=d);b.withCredentials&&(c.credentials="include");var e=!1,f;fetch(a,c).then(function(g){if(!e){e=!0;f&&window.clearTimeout(f);var h=g.ok,k=function(l){l=l||{};var m=b.context||y;h?b.onSuccess&&b.onSuccess.call(m,l,g):b.onError&&b.onError.call(m,l,g);b.Y&&b.Y.call(m,l,g)}; "JSON"==(b.format||"JSON")&&(h||400<=g.status&&500>g.status)?g.json().then(k,function(){k(null)}):k(null)}}); b.ia&&0k.status,q=500<=k.status&&600>k.status;if(l||n||q)m=Jg(a,c,k,b.Ua);if(l)a:if(k&&204==k.status)l=!0;else{switch(c){case "XML":l=0==parseInt(m&&m.return_code,10);break a;case "RAW":l=!0;break a}l=!!m}m=m|| {};n=b.context||y;l?b.onSuccess&&b.onSuccess.call(n,k,m):b.onError&&b.onError.call(n,k,m);b.Y&&b.Y.call(n,k,m)}},b.method,d,b.headers,b.responseType,b.withCredentials); if(b.T&&0f;f++){var g=d.concat(e[f].split(""));Xb[f]=g;for(var h=0;h>2;l=(l&3)<<4|m>>4;m=(m&15)<<2|k>>6;k&=63;g||(k=64,f||(m=64));d.push(c[h],c[l],c[m]||"",c[k]||"")}a.hash=d.join("")}return a} ;function Rg(){var a=new tf;(a=a.isAvailable()?new zf(a,"yt.innertube"):null)||(a=new uf("yt.innertube"),a=a.isAvailable()?a:null);this.f=a?new pf(a):null;this.g=document.domain||window.location.hostname} Rg.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.f)try{this.f.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(df(b))}catch(f){return}else e=escape(b);b=this.g;dc.set(""+a,e,{fa:c,path:"/",domain:void 0===b?"youtube.com":b,secure:!1})}; Rg.prototype.get=function(a,b){var c=void 0,d=!this.f;if(!d)try{c=this.f.get(a)}catch(e){d=!0}if(d&&(c=dc.get(""+a,void 0))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c}; Rg.prototype.remove=function(a){this.f&&this.f.remove(a);var b=this.g;dc.remove(""+a,"/",void 0===b?"youtube.com":b)};var Sg;function Tg(){Sg||(Sg=new Rg);return Sg} function Ug(a,b,c,d){if(d)return null;d=Tg().get("nextId",!0)||1;var e=Tg().get("requests",!0)||{};e[d]={method:a,request:b,authState:Qg(c),requestTime:Math.round(W())};Tg().set("nextId",d+1,86400,!0);Tg().set("requests",e,86400,!0);return d} function Vg(a){var b=Tg().get("requests",!0)||{};delete b[a];Tg().set("requests",b,86400,!0)} function Wg(a){var b=Tg().get("requests",!0);if(b){for(var c in b){var d=b[c];if(!(6E4>Math.round(W())-d.requestTime)){var e=d.authState;var f=Qg(Pg(!1));a:{var g=void 0,h=void 0;for(h in e)if(!(h in f)||e[h]!==f[h]){e=!1;break a}for(g in f)if(!(g in e)){e=!1;break a}e=!0}e&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(W())),qg(a,d.method,e,{}));delete b[c]}}Tg().set("requests",b,86400,!0)}} ;new Q;var Xg=[];function Yg(a,b){Xg.push({type:"EVENT",eventType:a,payload:b});10Math.random()&&Gf(new hh("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var e=new hh("innertube xhrclient not ready",b,c,d);Ff(e);e.sampleWeight=0;throw e;}var f={headers:{"Content-Type":"application/json"},method:"POST",D:c,ja:"JSON",T:function(){d.T()}, ia:d.T,onSuccess:function(n,q){if(d.onSuccess)d.onSuccess(q)}, ha:function(n){if(d.onSuccess)d.onSuccess(n)}, onError:function(n,q){if(d.onError)d.onError(q)}, Za:function(n){if(d.onError)d.onError(n)}, timeout:d.timeout,withCredentials:!0},g="";(e=a.f.Aa)&&(g=e);var h=a.f.Ca||!1,k=Pg(h,g,d);Object.assign(f.headers,k);f.headers.Authorization&&!g&&(f.headers["x-origin"]=window.location.origin);e="/youtubei/"+a.f.innertubeApiVersion+"/"+b;var l={alt:"json"};a.f.Ba&&f.headers.Authorization||(l.key=a.f.innertubeApiKey);var m=Kf(""+g+e,l||{},!0);Sh().then(function(n){if(d.retry&&V("retry_web_logging_batches")&&"www.youtube-nocookie.com"!=g){if(V("networkless_gel")&&!n||!V("networkless_gel"))var q=Ug(b, c,k,h);if(q){var p=f.onSuccess,w=f.ha;f.onSuccess=function(x,F){Vg(q);p(x,F)}; c.ha=function(x,F){Vg(q);w(x,F)}}}try{V("use_fetch_for_op_xhr")?Eg(m,f):V("networkless_gel")&&d.retry?(f.method="POST",!d.Ea&&V("nwl_send_fast_on_unload")?Th(m,f):Rh(m,f)):(f.method="POST",f.D||(f.D={}),Hg(m,f))}catch(x){if("InvalidAccessError"==x.name)q&&(Vg(q),q=0),Gf(Error("An extension is blocking network request.")); else throw x;}q&&Sf(function(){Wg(a)})})} ;function Vh(a,b,c){c=void 0===c?{}:c;var d=Uh;T("ytLoggingEventsDefaultDisabled",!1)&&Uh==Uh&&(d=null);sg(a,b,d,c)} ;var Wh=Date.now().toString(); function Xh(){a:{if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new Uint8Array(16);window.crypto.getRandomValues(b);for(var c=0;ca;a++){b=Date.now();for(c=0;c"',style:"display:none"}),(9==a.nodeType?a:a.ownerDocument||a.document).body.appendChild(a))}}else if(e)Ig(a,b,"POST",e,d);else if(T("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Ig(a,b,"GET","",d);else{b:{try{var g=new Ra({url:a});if(g.i&&g.g||g.j){var h=zb(a.match(yb)[5]||null),k;if(!(k= !h||!h.endsWith("/aclk"))){var l=a.search(Db);d:{for(c=0;0<=(c=a.indexOf("ri",c))&&cq)var p=null;else{var w=a.indexOf("&",q);if(0>w||w>l)w=l;q+=3;p=decodeURIComponent(a.substr(q,w-q).replace(/\+/g," "))}k="1"!==p}f=!k;break b}}catch(x){}f=!1}f?zi(a)?(b&&b(),f=!0):f=!1:f=!1;f||Ai(a,b)}} function zi(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1} function Ai(a,b){var c=new Image,d=""+xi++;wi[d]=c;c.onload=c.onerror=function(){b&&wi[d]&&b();delete wi[d]}; c.src=a} ;function Bi(a,b){di.call(this,1,arguments)} na(Bi,di);function Ci(a,b){di.call(this,1,arguments)} na(Ci,di);var Di=new ei("aft-recorded"),Ei=new ei("timing-sent");var Fi=window;function Gi(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}} var Hi=Fi.performance||Fi.mozPerformance||Fi.msPerformance||Fi.webkitPerformance||new Gi;var Ii=!1;Ma(Hi.clearResourceTimings||Hi.webkitClearResourceTimings||Hi.mozClearResourceTimings||Hi.msClearResourceTimings||Hi.oClearResourceTimings||Ga,Hi);function Ji(a){var b=Ki(a);if(b.aft)return b.aft;a=T((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=a.length,d=0;d1E5*Math.random()&&(c=new hh("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||oi(c)),!0):!1} ;var Z={},Vi=(Z.ad_allowed="adTypesAllowed",Z.yt_abt="adBreakType",Z.ad_cpn="adClientPlaybackNonce",Z.ad_docid="adVideoId",Z.yt_ad_an="adNetworks",Z.ad_at="adType",Z.aida="appInstallDataAgeMs",Z.browse_id="browseId",Z.p="httpProtocol",Z.t="transportProtocol",Z.cpn="clientPlaybackNonce",Z.ccs="creatorInfo.creatorCanaryState",Z.cseg="creatorInfo.creatorSegment",Z.csn="clientScreenNonce",Z.docid="videoId",Z.GetHome_rid="requestIds",Z.GetSearch_rid="requestIds",Z.GetPlayer_rid="requestIds",Z.GetWatchNext_rid= "requestIds",Z.GetBrowse_rid="requestIds",Z.GetLibrary_rid="requestIds",Z.is_continuation="isContinuation",Z.is_nav="isNavigation",Z.b_p="kabukiInfo.browseParams",Z.is_prefetch="kabukiInfo.isPrefetch",Z.is_secondary_nav="kabukiInfo.isSecondaryNav",Z.prev_browse_id="kabukiInfo.prevBrowseId",Z.query_source="kabukiInfo.querySource",Z.voz_type="kabukiInfo.vozType",Z.yt_lt="loadType",Z.mver="creatorInfo.measurementVersion",Z.yt_ad="isMonetized",Z.nr="webInfo.navigationReason",Z.nrsu="navigationRequestedSameUrl", Z.ncnp="webInfo.nonPreloadedNodeCount",Z.pnt="performanceNavigationTiming",Z.prt="playbackRequiresTap",Z.plt="playerInfo.playbackType",Z.pis="playerInfo.playerInitializedState",Z.paused="playerInfo.isPausedOnLoad",Z.yt_pt="playerType",Z.fmt="playerInfo.itag",Z.yt_pl="watchInfo.isPlaylist",Z.yt_pre="playerInfo.preloadType",Z.yt_ad_pr="prerollAllowed",Z.pa="previousAction",Z.yt_red="isRedSubscriber",Z.rce="mwebInfo.responseContentEncoding",Z.scrh="screenHeight",Z.scrw="screenWidth",Z.st="serverTimeMs", Z.ssdm="shellStartupDurationMs",Z.br_trs="tvInfo.bedrockTriggerState",Z.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",Z.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",Z.label="tvInfo.label",Z.is_mdx="tvInfo.isMdx",Z.preloaded="tvInfo.isPreloaded",Z.upg_player_vis="playerInfo.visibilityState",Z.query="unpluggedInfo.query",Z.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",Z.yt_vst="videoStreamType",Z.vph="viewportHeight",Z.vpw="viewportWidth",Z.yt_vis="isVisible",Z.rcl="mwebInfo.responseContentLength", Z.GetSettings_rid="requestIds",Z.GetTrending_rid="requestIds",Z.GetMusicSearchSuggestions_rid="requestIds",Z.REQUEST_ID="requestIds",Z),Wi="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized navigationRequestedSameUrl performanceNavigationTiming playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "),Xi={},Yi=(Xi.ccs="CANARY_STATE_", Xi.mver="MEASUREMENT_VERSION_",Xi.pis="PLAYER_INITIALIZED_STATE_",Xi.yt_pt="LATENCY_PLAYER_",Xi.pa="LATENCY_ACTION_",Xi.yt_vst="VIDEO_STREAM_TYPE_",Xi),Zi="all_vc ap c cver cbrand cmodel cplatform ctheme ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" "); function $i(a){return!!T("FORCE_CSI_ON_GEL",!1)||V("csi_on_gel")||!!Li(a).useGel} function aj(a){a=Li(a);if(!("gel"in a))a.gel={gelTicks:{},gelInfos:{}};else if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}return a.gel} ;function bj(a,b,c){if(null!==b)if(Mi(c)[a]=b,$i(c)){var d=b;b=aj(c);if(b.gelInfos)b.gelInfos["info_"+a]=!0;else{var e={};b.gelInfos=(e["info_"+a]=!0,e)}if(a.match("_rid")){var f=a.split("_rid")[0];a="REQUEST_ID"}if(a in Vi){b=Vi[a];0<=Sa(Wi,b)&&(d=!!d);a in Yi&&"string"===typeof d&&(d=Yi[a]+d.toUpperCase());a=d;d=b.split(".");for(var g=e={},h=0;h